﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace TerminationCall.Editor.Logic {

    public class EraserPainterFactory : IPainterFactory {

        public EraserPainterFactory() {
            Size = 1;
            Autoborder = true;
        }

        public string Name {
            get {
                return "Eraser";
            }
        }

        public EditorTool EditorTool { get; set; }

        public int Size { get; set; }
        public bool Autoborder { get; set; }

        public IPainter CreatePainter(Point point) {

            EraserPainter eraserPainter = new EraserPainter();
            eraserPainter.Size = Size;
            eraserPainter.Autoborder = Autoborder;

            return eraserPainter;
        }

    }

}
